/**
 * 
 */
package d.qapaper.tool;

import java.lang.reflect.InvocationTargetException;

import android.widget.Button;


/**
 * @author Kaven
 * 2011-5-24
 */
public class ReflectUtil {
	public static  Object getObject(Class clazz){
		Object object=null;
		try {
			object=clazz.getConstructor(new Class[]{}).newInstance(new Object[]{});
		} catch (Exception e) {
			e.printStackTrace();
		} 
		return object;
	}
	
	public static void main(Class clazz) {
		Object obj=ReflectUtil.getObject(Button.class);
		System.out.println(clazz.toString());
	}
}
